package com.newbingo.service.imple;

import java.util.List;

import com.newbingo.dto.GameTableDto;
import com.newbingo.entity.GameTable;
import com.newbingo.util.Pager;

public interface IGameTableService {

	/**
	 * 新增游戏桌
	 * 
	 * @param transientInstance
	 */
	public abstract void save(GameTable transientInstance);

	/**
	 * 删除游戏桌
	 * 
	 * @param transientInstance
	 */
	public abstract void delete(GameTable transientInstance);

	/**
	 * 修改游戏桌信息
	 * 
	 * @param transientInstance
	 */
	public abstract GameTable merge(GameTable transientInstance);

	/**
	 * 查询所有游戏桌
	 * 
	 * @return a collection of GameTable instances;
	 */
	public abstract List findAll();

	/**
	 * 根据游戏id查询出游戏桌
	 * 
	 * @param game
	 * @return a list of GameTable
	 */
	public abstract GameTable findByGameTableId(Integer id);
	
	public abstract GameTableDto findById(Integer id);

	/**
	 * 根据属性名称和值查询
	 * 
	 * @param propertyName
	 * @param value
	 * @return
	 */
	public abstract List findByProperty(String propertyName, Object value);

	/**
	 * 根据游戏桌名称查询
	 * 
	 * @param name
	 * @return
	 */
	public abstract List findByName(Object name);

    /**
     * 根据游戏桌的状态查询
     * @param tableState
     * 
     */
	public abstract List findByTableState(Object tableState);

	public abstract void attachDirty(GameTable instance);

	public abstract void attachClean(GameTable instance);

	public abstract Pager findByPage(int start, int limit, int gameno);
	

}
